package com.springboot.ww.platform.pd.lms.api;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2024-07-03 15:54
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class PdStockResp implements Serializable {


    @JsonProperty("result")
    private ResultBean result;
    @JsonProperty("success")
    private boolean success;
    @JsonProperty("requestId")
    private String requestId;
    @JsonProperty("errorCode")
    private int errorCode;
    @JsonProperty("errorMsg")
    private String errorMsg;

    @JsonIgnoreProperties(ignoreUnknown = true)
    @Data
    public static class ResultBean implements Serializable {
        @JsonProperty("productSkuStockList")
        private List<ProductSkuStockListBean> productSkuStockList;

        @JsonIgnoreProperties(ignoreUnknown = true)
        @Data
        public static class ProductSkuStockListBean implements Serializable {
            @JsonProperty("productSkuId")
            private String productSkuId;
            @JsonProperty("skuStockQuantity")
            private int skuStockQuantity;
            @JsonProperty("warehouseId")
            private String warehouseId;
            @JsonProperty("shippingMode")
            private int shippingMode;
            @JsonProperty("warehouseName")
            private String warehouseName;
            @JsonProperty("tempLockQuantity")
            private int tempLockQuantity;
        }
    }
}
